/**
 * Generate time : 2011-06-24 15:31:01
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cm.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCMInventory
 * 
 */
public class ZMCMInventory extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdInventoryCode = " "; /* 盘点单编号 */
	private String fdInventoryDepartment = " "; /* 盘点单位 */
	private String fdDepotId = " "; /* 库房主键 */
	private String fdInventoryPeople = " "; /* 盘点人 */
	private String fdEditor = " "; /* 编制人 */
	private String fdInventoryDate = " "; /* 盘点日期 */
	private String fdEditDate = " "; /* 编制日期 */
	private String fdDepotCode = " "; /* 库房code */
	private String fdRemark = " "; /* 备注 */
	private String fdStatus = " "; /* 状态 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdInventoryCode");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("盘点单编号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdInventoryDepartment");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("盘点单位");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepotId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("库房主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdInventoryPeople");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("盘点人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEditor");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("编制人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdInventoryDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("盘点日期");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEditDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("编制日期");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepotCode");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("库房code");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRemark");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("备注");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdStatus");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("状态");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCMInventory() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdInventoryCode - 盘点单编号
	 * 
	 * @return the fdInventoryCode
	 */
	public String getFdInventoryCode() {
		return this.fdInventoryCode;
	}

	/**
	 * set the fdInventoryCode - 盘点单编号
	 */
	public void setFdInventoryCode(String fdInventoryCode) {
		this.fdInventoryCode = fdInventoryCode;
	}

	/**
	 * get the fdInventoryDepartment - 盘点单位
	 * 
	 * @return the fdInventoryDepartment
	 */
	public String getFdInventoryDepartment() {
		return this.fdInventoryDepartment;
	}

	/**
	 * set the fdInventoryDepartment - 盘点单位
	 */
	public void setFdInventoryDepartment(String fdInventoryDepartment) {
		this.fdInventoryDepartment = fdInventoryDepartment;
	}

	/**
	 * get the fdDepotId - 库房主键
	 * 
	 * @return the fdDepotId
	 */
	public String getFdDepotId() {
		return this.fdDepotId;
	}

	/**
	 * set the fdDepotId - 库房主键
	 */
	public void setFdDepotId(String fdDepotId) {
		this.fdDepotId = fdDepotId;
	}

	/**
	 * get the fdInventoryPeople - 盘点人
	 * 
	 * @return the fdInventoryPeople
	 */
	public String getFdInventoryPeople() {
		return this.fdInventoryPeople;
	}

	/**
	 * set the fdInventoryPeople - 盘点人
	 */
	public void setFdInventoryPeople(String fdInventoryPeople) {
		this.fdInventoryPeople = fdInventoryPeople;
	}

	/**
	 * get the fdEditor - 编制人
	 * 
	 * @return the fdEditor
	 */
	public String getFdEditor() {
		return this.fdEditor;
	}

	/**
	 * set the fdEditor - 编制人
	 */
	public void setFdEditor(String fdEditor) {
		this.fdEditor = fdEditor;
	}

	/**
	 * get the fdInventoryDate - 盘点日期
	 * 
	 * @return the fdInventoryDate
	 */
	public String getFdInventoryDate() {
		return this.fdInventoryDate;
	}

	/**
	 * set the fdInventoryDate - 盘点日期
	 */
	public void setFdInventoryDate(String fdInventoryDate) {
		this.fdInventoryDate = fdInventoryDate;
	}

	/**
	 * get the fdDepotCode - 库房code
	 * 
	 * @return the fdDepotCode
	 */
	public String getfdDepotCode() {
		return this.fdDepotCode;
	}

	/**
	 * set the fdDepotCode - 库房code
	 */
	public void setfdDepotCode(String fdDepotCode) {
		this.fdDepotCode = fdDepotCode;
	}

	/**
	 * get the fdEditDate - 编制日期
	 * 
	 * @return the fdEditDate
	 */
	public String getFdEditDate() {
		return this.fdEditDate;
	}

	/**
	 * set the fdEditDate - 编制日期
	 */
	public void setFdEditDate(String fdEditDate) {
		this.fdEditDate = fdEditDate;
	}

	/**
	 * get the fdRemark - 备注
	 * 
	 * @return the fdRemark
	 */
	public String getFdRemark() {
		return this.fdRemark;
	}

	/**
	 * set the fdRemark - 备注
	 */
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}

	/**
	 * get the FdStatus - 状态
	 * 
	 * @return the FdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}

	/**
	 * set the FdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdInventoryCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdInventoryCode")), fdInventoryCode));
		setFdInventoryDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdInventoryDepartment")), fdInventoryDepartment));
		setFdDepotId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepotId")), fdDepotId));
		setFdInventoryPeople(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdInventoryPeople")), fdInventoryPeople));
		setFdEditor(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEditor")), fdEditor));
		setFdInventoryDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdInventoryDate")), fdInventoryDate));
		setFdEditDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEditDate")), fdEditDate));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepotCode")), fdDepotCode));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));

	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdInventoryCode", StringUtils.toString(fdInventoryCode, eiMetadata.getMeta("fdInventoryCode")));
		map.put("fdInventoryDepartment", StringUtils.toString(fdInventoryDepartment, eiMetadata.getMeta("fdInventoryDepartment")));
		map.put("fdDepotId", StringUtils.toString(fdDepotId, eiMetadata.getMeta("fdDepotId")));
		map.put("fdInventoryPeople", StringUtils.toString(fdInventoryPeople, eiMetadata.getMeta("fdInventoryPeople")));
		map.put("fdEditor", StringUtils.toString(fdEditor, eiMetadata.getMeta("fdEditor")));
		map.put("fdInventoryDate", StringUtils.toString(fdInventoryDate, eiMetadata.getMeta("fdInventoryDate")));
		map.put("fdEditDate", StringUtils.toString(fdEditDate, eiMetadata.getMeta("fdEditDate")));
		map.put("fdRemark", StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));
		map.put("fdDepotCode", StringUtils.toString(fdDepotCode, eiMetadata.getMeta("fdDepotCode")));
		map.put("fdStatus", StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));

		return map;

	}
}